package com.niiwoo.civet.trade.dto.common;

import com.niiwoo.civet.trade.enums.PeriodUnitEnum;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by zhangwanli on 2017/11/16.
 */
@Setter
@Getter
@NoArgsConstructor
public class PeriodDTO implements Serializable {
    private static final long serialVersionUID = 4893425965461961392L;

    private PeriodUnitEnum unit;
    private Integer begin;
    private Byte beginQueryType; // 借款利率起查询类型：1大于，2大于等于，3等于
    private Integer end;
	private Byte endQueryType; //借款利率止查询类型：1小于，2小于等于，3等于

    public PeriodDTO(byte unit, Integer begin, Integer end) {
        this.unit = PeriodUnitEnum.enumOf(unit);
        this.begin = begin;
        this.end = end;
    }

}
